package com.wyk.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author WangYuKai
 * @Date 2022/8/3
 * @apiNote@AllArgsConstructor
 */
@Data
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T data;

    public CommonResult(int code, String message, T data){
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public CommonResult(int code, String message){
        this.code = code;
        this.message = message;
    }
}
